package com.sunrise.xdoc.entity.contact;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

@Entity
@Table(name = "contact_nha_cung_cap")
@Inheritance(strategy = InheritanceType.JOINED)
public class NhaCungCap extends AbstractContact {
	private static final long serialVersionUID = -6195550886337822953L;
	private String nguoiLienLac1;
	private String phone1;
	private String nguoiLienLac2;
	private String phone2;

	@Column(name = "nguoi_lien_lac_1")
	@Length(max = 255)
	public String getNguoiLienLac1() {
		return nguoiLienLac1;
	}

	public void setNguoiLienLac1(String nguoiLienLac1) {
		this.nguoiLienLac1 = nguoiLienLac1;
	}

	@Column(name = "phone_1")
	@Length(max = 20)
	public String getPhone1() {
		return phone1;
	}

	public void setPhone1(String phone1) {
		this.phone1 = phone1;
	}

	@Column(name = "nguoi_lien_lac_2")
	@Length(max = 255)
	public String getNguoiLienLac2() {
		return nguoiLienLac2;
	}

	public void setNguoiLienLac2(String nguoiLienLac2) {
		this.nguoiLienLac2 = nguoiLienLac2;
	}

	@Column(name = "phone_2")
	@Length(max = 20)
	public String getPhone2() {
		return phone2;
	}

	public void setPhone2(String phone2) {
		this.phone2 = phone2;
	}
}
